package cn.gailvlun.gll.presentation.chat.adapter;

import android.content.Context;

import com.github.markzhai.recyclerview.MultiTypeAdapter;

import java.util.List;

import cn.gailvlun.gll.R;
import cn.gailvlun.gll.chatlib.NotificationType;



public class SystemNotificationAdapter extends MultiTypeAdapter {
    public SystemNotificationAdapter(Context context) {
        super(context);

        addViewTypeToLayoutMap(NotificationType.emotionHeart.ordinal(), R.layout.item_system_notification_emotion_heart);
        addViewTypeToLayoutMap(NotificationType.emotionComment.ordinal(), R.layout.item_system_notification_emotion_comment);
        addViewTypeToLayoutMap(NotificationType.wishDeadLine.ordinal(), R.layout.item_system_notification_wish_deadline);
        addViewTypeToLayoutMap(NotificationType.hotelHeart.ordinal(), R.layout.item_system_notification_hotel_heart);
        addViewTypeToLayoutMap(NotificationType.hotelComment.ordinal(), R.layout.item_system_notification_hotel_comment);
        addViewTypeToLayoutMap(NotificationType.roomOpen.ordinal(), R.layout.item_system_notification_room);
        addViewTypeToLayoutMap(NotificationType.roomWillBeClosed.ordinal(), R.layout.item_system_notification_room);
        addViewTypeToLayoutMap(NotificationType.roomClosed.ordinal(), R.layout.item_system_notification_room);
        addViewTypeToLayoutMap(NotificationType.roomReviewed.ordinal(), R.layout.item_system_notification_room);
        addViewTypeToLayoutMap(NotificationType.roomAbortion.ordinal(), R.layout.item_system_notification_room);
        addViewTypeToLayoutMap(NotificationType.roomStartSign.ordinal(), R.layout.item_system_notification_room);
    }

    public List<Object> getData() {
        return mCollection;
    }
}
